<template>
    <div class="contianer-case">
      <span class="title">{{caseName}}</span>
      <!--<div class="des">单元：英语视听说社交口语</div>-->
      <span class="num">流程：{{linkNum}}</span>
      <div class="button">
        <el-button type="primary" @click="toTaskList" style="width: 219px;">开始训练</el-button>
      </div>
    </div>
</template>

<script>
export default {
  name: 'caseNoStartBox',
  props: {
    /**
     * 案例名称
     */
    caseName: String,
    /**
     * 环节数量
     */
    linkNum: Number,
    /**
     * 案例资源id
     */
    resourceCaseId: String
  },
  methods: {
    toTaskList () {
      this.$router.push({ name: 'taskList', query: { resourceCaseId: this.resourceCaseId } })
    }
  }
}
</script>

<style scoped lang="scss">
.contianer-case{
  width:415px;
  height:239px;
  background:rgba(255,255,255,1);
  border:8px solid rgba(213,226,242,1);
  border-radius:10px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-sizing: border-box;
  padding: 28px;
  display: flex;
  flex-flow: column nowrap;
  .title{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:400;
    color:rgba(16,29,55,1);
    margin-bottom: 10px;
  }
  .des{
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 11px;
  }
  .num{
    font-size:16px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(16,29,55,1);
    margin-top: 22px;
  }
  .button{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 47px;
  }
}
</style>
